package com.nit.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Rentrecord对象", description="")
public class Rentrecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租用记录id")
    @TableId(value = "rentrecord_id", type = IdType.AUTO)
    private Integer rentrecordId;

    @ApiModelProperty(value = "租用物品id")
    private Integer rentgoodsId;

    @ApiModelProperty(value = "租用物品数量")
    private Integer rentapplyCount;

    @ApiModelProperty(value = "申请租用人")
    private Integer userId;

    @ApiModelProperty(value = "处理人id")
    private Integer adminId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createtime;

    @ApiModelProperty(value = "审批状态，是否通过，1为通过，2为拒绝")
    private Integer rentrecordStatus;

    @ApiModelProperty(value = "租用状态，是否归还，0为无，1为归还，2为未归还")
    private Integer rentrecordReturn;


}
